package com.ning.ems.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author Ning 242741154@qq.com
 * @date 2020/4/11 20:16
 */
@Data
@ApiModel("DTO-Package-Add")
public class PackageAddDto implements Serializable {
    @ApiModelProperty("包裹描述")
    @NotNull(message = "包裹描述不能为空")
    private String desc;

    @ApiModelProperty("包裹重量")
    @NotNull(message = "包裹重量不能为空")
    private Double weight;

//    @ApiModelProperty("寄件人id")
//    @NotNull(message = "寄件人id不能为空")
//    private Integer sender;

    @ApiModelProperty("寄件人地址id")
    @NotNull(message = "寄件人地址id不能为空")
    private Integer senderAddr;

//    @ApiModelProperty("收件人id")
//    @NotNull(message = "收件人id不能为空")
//    private Integer receiver;

    @ApiModelProperty("收件人地址id")
    @NotNull(message = "收件人地址id不能为空")
    private Integer receiverAddr;
}
